package com.imooc.sell.dao;

import com.imooc.sell.dataobject.OrderDetail;
import com.imooc.sell.dataobject.ProductCategory;
import com.imooc.sell.dataobject.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface OrderDetailDao extends JpaRepository<OrderDetail, String> {
    @Query(value = "select p from ProductCategory p")
    List<ProductCategory> mFind();

    List<OrderDetail> findAllByOrderId(String orderId);
}
